﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EPiServer.Configuration;

namespace EPiSugar.UnitTesting.Configuration
{
    public class FakeEPiServerSection : EPiServerSection
    {
        public FakeEPiServerSection()
        {
            var settings = new Settings { PageRootId = 1, PageStartId = 1, ConnectionStringName = "EPiServerDB" };
            var site = new FakeSiteElement(settings) { SiteId = "1", ApplicationId = "unknown", Description = "Test Application"};
            var sites = new FakeSiteElementCollection(site);
            
            this["sites"] = sites;
        }
    }
}